#include <stdio.h>
#include "FriendStation.h"

int main()
  char acmd[15],ucmd[15];
  do{
    /* Modus Admin */
    printf("> ");
    scanf("%s",acmd);
    switch(acmd){
      case "load" :{ scanf("%[^'#']",Pita_karakter);
                     scanf("%*c");
	                 if(!Load()) printf("Loading file %s sukses.\n",Pita_karakter);
					 fclose(FILEKU);
					 break;
				   }
      case "user" :{/* Modus User */
                    if ..
                    printf("%s >> ",InfoEmail(P));
                    do{
                      scanf("%s",ucmd);
                      switch(ucmd){
                        case "friend" :{  break;}
                        case "unfriend" :{  break;}
                        case "updatedata" :{  break;}
                        case "birthday" :{  break;}
                        case "same" :{  break;}
                        case "notfriendyet" :{  break;}
                        case "close" : { Ignore(); break; }
                        default : printf("Perintah tidak dikenali\n\n");
                        }
                      }while(strcmp(ucmd,"close")!=0);
                    break;}
      case "save" :{  break;}
      case "reload" :{ Ignore();
	                   if(!Load()) printf("Reload data sesuai %s sukses.\n",Pita_karakter);
					   fclose(FILEKU);
	                   break;
					 }
      case "adduser" :{  break;}
      case "modifyuser" :{  break;}
      case "deluser" :{  break;}
      case "list" :{  break;}
      case "exit" :{ Ignore(); break; }
      default : printf("Perintah tidak dikenali\n\n");
      }
    }while(strcmp(acmd,"exit")!=0);
  return 0;
  }